/***************************************************************************
 *   Copyright (C) 2008 by Silvan Imsand <imsandli@gmail.com>              *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
 ***************************************************************************/

package com.sametime.twitterclient.twitterapi;

/**
 * Exception that will be thrown if the twitter update message is too long
 * maximal size of message is 160
 * maximal size of messages for optimal view is 140
 * @since 1.0
 * @author Silvan Imsand
 */
public class MessageToLongException extends RuntimeException {
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 3297413298651L;

	/**
     * Creates a new instance of MessageToLongException
     */
    public MessageToLongException() {
        super("The message was more then 160 characters and will not be sent to twitter.com");
    }
    
    /**
     * Constructs an instance of <code>MessageToLongException</code> with the specified detail message.
     * @param message the detail message.
     */    
    public MessageToLongException(String message)
    {
        super(message);
    }

    /**
     * Constructs an instance of <code>MessageToLongException</code> with the specified detail message.
     * @param message message string
     * @param cause the cause
     */
    public MessageToLongException(String message, Throwable cause)
    {
        super(message, cause);
    }

}
